using System;
using System.Runtime.Serialization;
namespace eTMS.DAO{
	/********************************BEGIN NewsEntityBase****************************************/
	///<summary>
	/// <para>Author: Auto generated class by CSharp Code Generator v2.0</para>
	/// <para>Date:01/10/2010 33:09:48</para>
	/// <para>Class Name: NewsEntityBase</para>
	/// <para>Description: ClassNewsEntityBase store data of table News</para>
	///</summary>

	[DataContract]
	public  class NewsEntityBase{


		private bool _InternalChangedIsNullNew_ID=true;
		private bool _IsNullNew_ID=true;
		private bool _InternalChangedIsNullTitle=true;
		private bool _IsNullTitle=true;
		private bool _InternalChangedIsNullMainContent=true;
		private bool _IsNullMainContent=true;
		private bool _InternalChangedIsNullContent=true;
		private bool _IsNullContent=true;
		private bool _InternalChangedIsNullNewIndex=true;
		private bool _IsNullNewIndex=true;
		private bool _InternalChangedIsNullDatePost=true;
		private bool _IsNullDatePost=true;
		private bool _InternalChangedIsNullStatus=true;
		private bool _IsNullStatus=true;
		private bool _InternalChangedIsNullDisplay=true;
		private bool _IsNullDisplay=true;
		private bool _InternalChangedIsNullIsHomePage=true;
		private bool _IsNullIsHomePage=true;
		private bool _InternalChangedIsNullDateAproved=true;
		private bool _IsNullDateAproved=true;
		private bool _InternalChangedIsNullDateExprired=true;
		private bool _IsNullDateExprired=true;
		private bool _InternalChangedIsNullCategory_ID=true;
		private bool _IsNullCategory_ID=true;
		private bool _InternalChangedIsNullUser_ID=true;
		private bool _IsNullUser_ID=true;
		private bool _InternalChangedIsNullApproved_ID=true;
		private bool _IsNullApproved_ID=true;
		private bool _InternalChangedIsNullSmallImageUrl=true;
		private bool _IsNullSmallImageUrl=true;
		private bool _InternalChangedIsNullLargeImageUrl=true;
		private bool _IsNullLargeImageUrl=true;
		private int _New_ID;
		private string _Title;
		private string _MainContent;
		private string _Content;
		private int _NewIndex;
		private DateTime _DatePost;
		private Byte _Status;
		private bool _Display;
		private bool _IsHomePage;
		private DateTime _DateAproved;
		private DateTime _DateExprired;
		private int _Category_ID;
		private int _User_ID;
		private int _Approved_ID;
		private string _SmallImageUrl;
		private string _LargeImageUrl;
		[DataMember]
		public bool IsNullNew_ID{
			get{return _IsNullNew_ID;}
			set{if(!_InternalChangedIsNullNew_ID)_IsNullNew_ID=value;}
		}
		[DataMember]
		public bool IsNullTitle{
			get{return _IsNullTitle;}
			set{if(!_InternalChangedIsNullTitle)_IsNullTitle=value;}
		}
		[DataMember]
		public bool IsNullMainContent{
			get{return _IsNullMainContent;}
			set{if(!_InternalChangedIsNullMainContent)_IsNullMainContent=value;}
		}
		[DataMember]
		public bool IsNullContent{
			get{return _IsNullContent;}
			set{if(!_InternalChangedIsNullContent)_IsNullContent=value;}
		}
		[DataMember]
		public bool IsNullNewIndex{
			get{return _IsNullNewIndex;}
			set{if(!_InternalChangedIsNullNewIndex)_IsNullNewIndex=value;}
		}
		[DataMember]
		public bool IsNullDatePost{
			get{return _IsNullDatePost;}
			set{if(!_InternalChangedIsNullDatePost)_IsNullDatePost=value;}
		}
		[DataMember]
		public bool IsNullStatus{
			get{return _IsNullStatus;}
			set{if(!_InternalChangedIsNullStatus)_IsNullStatus=value;}
		}
		[DataMember]
		public bool IsNullDisplay{
			get{return _IsNullDisplay;}
			set{if(!_InternalChangedIsNullDisplay)_IsNullDisplay=value;}
		}
		[DataMember]
		public bool IsNullIsHomePage{
			get{return _IsNullIsHomePage;}
			set{if(!_InternalChangedIsNullIsHomePage)_IsNullIsHomePage=value;}
		}
		[DataMember]
		public bool IsNullDateAproved{
			get{return _IsNullDateAproved;}
			set{if(!_InternalChangedIsNullDateAproved)_IsNullDateAproved=value;}
		}
		[DataMember]
		public bool IsNullDateExprired{
			get{return _IsNullDateExprired;}
			set{if(!_InternalChangedIsNullDateExprired)_IsNullDateExprired=value;}
		}
		[DataMember]
		public bool IsNullCategory_ID{
			get{return _IsNullCategory_ID;}
			set{if(!_InternalChangedIsNullCategory_ID)_IsNullCategory_ID=value;}
		}
		[DataMember]
		public bool IsNullUser_ID{
			get{return _IsNullUser_ID;}
			set{if(!_InternalChangedIsNullUser_ID)_IsNullUser_ID=value;}
		}
		[DataMember]
		public bool IsNullApproved_ID{
			get{return _IsNullApproved_ID;}
			set{if(!_InternalChangedIsNullApproved_ID)_IsNullApproved_ID=value;}
		}
		[DataMember]
		public bool IsNullSmallImageUrl{
			get{return _IsNullSmallImageUrl;}
			set{if(!_InternalChangedIsNullSmallImageUrl)_IsNullSmallImageUrl=value;}
		}
		[DataMember]
		public bool IsNullLargeImageUrl{
			get{return _IsNullLargeImageUrl;}
			set{if(!_InternalChangedIsNullLargeImageUrl)_IsNullLargeImageUrl=value;}
		}
		[DataMember]
		public int New_ID{
			get{return _New_ID;}
			set{
				_New_ID=value;
				if(_New_ID!=null){
					_IsNullNew_ID=false;
					_InternalChangedIsNullNew_ID=true;
				}
			}
		}
		[DataMember]
		public string Title{
			get{return _Title;}
			set{
				_Title=value;
				if(_Title!=null){
					_IsNullTitle=false;
					_InternalChangedIsNullTitle=true;
				}
			}
		}
		[DataMember]
		public string MainContent{
			get{return _MainContent;}
			set{
				_MainContent=value;
				if(_MainContent!=null){
					_IsNullMainContent=false;
					_InternalChangedIsNullMainContent=true;
				}
			}
		}
		[DataMember]
		public string Content{
			get{return _Content;}
			set{
				_Content=value;
				if(_Content!=null){
					_IsNullContent=false;
					_InternalChangedIsNullContent=true;
				}
			}
		}
		[DataMember]
		public int NewIndex{
			get{return _NewIndex;}
			set{
				_NewIndex=value;
				if(_NewIndex!=null){
					_IsNullNewIndex=false;
					_InternalChangedIsNullNewIndex=true;
				}
			}
		}
		[DataMember]
		public DateTime DatePost{
			get{return _DatePost;}
			set{
				_DatePost=value;
				if(_DatePost!=null){
					_IsNullDatePost=false;
					_InternalChangedIsNullDatePost=true;
				}
			}
		}
		[DataMember]
		public Byte Status{
			get{return _Status;}
			set{
				_Status=value;
				if(_Status!=null){
					_IsNullStatus=false;
					_InternalChangedIsNullStatus=true;
				}
			}
		}
		[DataMember]
		public bool Display{
			get{return _Display;}
			set{
				_Display=value;
				if(_Display!=null){
					_IsNullDisplay=false;
					_InternalChangedIsNullDisplay=true;
				}
			}
		}
		[DataMember]
		public bool IsHomePage{
			get{return _IsHomePage;}
			set{
				_IsHomePage=value;
				if(_IsHomePage!=null){
					_IsNullIsHomePage=false;
					_InternalChangedIsNullIsHomePage=true;
				}
			}
		}
		[DataMember]
		public DateTime DateAproved{
			get{return _DateAproved;}
			set{
				_DateAproved=value;
				if(_DateAproved!=null){
					_IsNullDateAproved=false;
					_InternalChangedIsNullDateAproved=true;
				}
			}
		}
		[DataMember]
		public DateTime DateExprired{
			get{return _DateExprired;}
			set{
				_DateExprired=value;
				if(_DateExprired!=null){
					_IsNullDateExprired=false;
					_InternalChangedIsNullDateExprired=true;
				}
			}
		}
		[DataMember]
		public int Category_ID{
			get{return _Category_ID;}
			set{
				_Category_ID=value;
				if(_Category_ID!=null){
					_IsNullCategory_ID=false;
					_InternalChangedIsNullCategory_ID=true;
				}
			}
		}
		[DataMember]
		public int User_ID{
			get{return _User_ID;}
			set{
				_User_ID=value;
				if(_User_ID!=null){
					_IsNullUser_ID=false;
					_InternalChangedIsNullUser_ID=true;
				}
			}
		}
		[DataMember]
		public int Approved_ID{
			get{return _Approved_ID;}
			set{
				_Approved_ID=value;
				if(_Approved_ID!=null){
					_IsNullApproved_ID=false;
					_InternalChangedIsNullApproved_ID=true;
				}
			}
		}
		[DataMember]
		public string SmallImageUrl{
			get{return _SmallImageUrl;}
			set{
				_SmallImageUrl=value;
				if(_SmallImageUrl!=null){
					_IsNullSmallImageUrl=false;
					_InternalChangedIsNullSmallImageUrl=true;
				}
			}
		}
		[DataMember]
		public string LargeImageUrl{
			get{return _LargeImageUrl;}
			set{
				_LargeImageUrl=value;
				if(_LargeImageUrl!=null){
					_IsNullLargeImageUrl=false;
					_InternalChangedIsNullLargeImageUrl=true;
				}
			}
		}
	}
	/*****************************************************************************************************/
	/**********************************END NewsEntityBase*****************************************/
	/*****************************************************************************************************/
}

